<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.console.libs.templates.skel.views.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php __('Kế hoạch - Kinh doanh Viettel'); ?>
		<?php //echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		echo $this->Html->css(array('cake.generic','menu','tabs','tables','login','style'));
		echo $this->Html->css('jquery.ui.core');/// DON'T DELETE
		echo $this->Html->css('jquery.ui.accordion');
		echo $this->Html->css('jquery.jstree');
		echo $this->Html->css('jquery.ui.theme');
		echo $this->Html->css('jquery.ui.datepicker');
        echo $this->Html->css('jquery.ui.accordion');
        echo $this->Html->css('jquery.ui.tabs');
        
        echo $this->Html->script('jquery');
        echo $this->Html->script('jquery.jeditable');
		echo $this->Html->script('date');
		echo $this->Html->script('jquery.ui.datepicker');
		echo $this->Html->script('jquery.jstree');
		echo $this->Html->script('jquery.ui.core');
		echo $this->Html->script('jquery.ui.widget');
		echo $this->Html->script('jquery.ui.tabs');
        echo $this->Html->script('jquery.ui.accordion');
        echo $this->Html->script('jquery.panesfreezer');
        echo $this->Html->script('example-one');
		echo $scripts_for_layout;
	?>
    <script>
   $(function() {
		$( "#calen" ).datepicker();
	});

    </script>
</head>
<body>
	<div id="container">
		<div id="logo">
		<h1><span>KẾ HOẠCH </span> KINH DOANH</h1>
        </div>
		<div id="content">
            <div class="actions">
                    <div id="menu" >
                        <div id="ten">MAIN MENU</div>
                    <?php If(!empty($curUser)) echo $this->element('menu'); ?>
                    </div>
                    <div id="calendar" style="float: left; margin-top: 15px">
                        <div id="ten">CALENDAR</div>
                        <div style="float: left;" id="calen">
                            <?php
                                    
                                   // $time = time();
//                                    $today = date('j',$time);
//                                    $days = array($today=>array(NULL,NULL,'<span style="color: red; font-weight: bold; text-decoration: blink;">'.$today.'</span>'));
//                                    echo '<font size="2"'.$calendar->generate_calendar(date('Y', $time), date('n', $time), $days).'</font>';
                            ?>
                        </div>
                    </div>
                    <div id="footer">
                        Version 2.0 - Copyright@2011 <br />
                        <a href="http://www.vttu.edu.vn/wastore">Designed by WAStore</a> <br />
                        wastoregroup@gmail.com
            		</div>
            </div>
            <div class="noidung">
                <div id="info">
                    <div id="user">
                         <?php If(!empty($curUser)){
            		        echo '<ul>';      
                            echo '<li>Tài khoản: <b>';
                            echo $curUser['User']['username'].'</b></li>';
                        echo '<li>Họ tên: <b>';
                        echo $hoten[0]['nhanviens']['tennv'].'</b></li>';
                        echo '<li>Đơn vị: <b>';
                        echo $hoten[0]['donvis']['tendv'].'</b></li>';
                        echo '<li style="border: none">'.$html->image('logout.png', array('url'=> array('controller'=>'users', 'action'=>'logout'))).'</li>';
                        echo '</ul>';
                        }
                        ?>
                    </div>
                </div>
                <div style="overflow: auto;height:900px;" align="left">
                    <?php echo $this->Session->flash(); ?>
        			<?php echo $content_for_layout; ?>
                </div>
            </div>
		</div>
		
	</div>
	<?php echo $this->element('sql_dump');?>
	<?php echo $this->Js->writeBuffer();?>
</body>
</html>